package com.ai.test2.controller;

import com.ai.test2.service.ProviderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Date:  2018/11/5
 * Time:  15:53
 * Email: siy@hmgsoft.com
 * Created by siy
 */
@RestController
@RequestMapping("/v1")
public class ProviderController {
	@Resource
	private ProviderService providerService;

	@GetMapping("/update")
	public String update(){
		providerService.increaseAmount("1",10);
		return "ok";
	}

}
